﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework;

namespace Horridor
{
    class DebugLayer
    {
        SpriteFont spriteFont;
        static List<string> StringsToDraw = new List<string>();

        public DebugLayer(SpriteFont font)
        {
            spriteFont = font;
        }

        public static void ShowMessage(String message)
        {
            StringsToDraw.Add(message);
        }


        public void Draw(SpriteBatch batchy)
        {
            for (int i = 0; i < StringsToDraw.Count; i++) 
            {
                batchy.DrawString(spriteFont, StringsToDraw[i], new Microsoft.Xna.Framework.Vector2(3, 3 + (i * spriteFont.LineSpacing) + i), Color.White);
            }
            StringsToDraw.Clear();
        }


    }
}
